import re
import logging
from odoo import fields, api, models, tools, _
from odoo.exceptions import UserError, ValidationError

_logger = logging.getLogger(__name__)

class FactoryApprovalLog(models.Model):
    _name = 'factory.approval.log'
    _description = 'Factory Approval Log'

    remark = fields.Char(string="审批备注")
    result = fields.Boolean('审批结果', default=False)
    factory_visitor_id = fields.Many2one('factory.visitor', string="审批记录")
    approval_user = fields.Many2one('res.users', string='审批人')
    approval_date = fields.Datetime(string='审批日期')
    is_reject = fields.Boolean('是否拒绝', default=False)


